package org.example.factory01;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author liyishan
 * @date 2024/2/18 14:22
 * @apiNote
 */
@Slf4j
@Component
public class jdStrategy02 extends AbstractBaseJdStrategy{
    private final static String FILE = "jdlHnhyg";

    //private static final String BASE_URI = PropertiesUtil.getProperty(FILE, "jdlHnhyg.baseUri", "");
    private static final String BASE_URI = "http://www.hunan.com";

    /**
     * 得到JdApi
     *
     * @return {@code JdApi}
     */
    @Override
    JdApi getJdApiBean() {
        log.info("初始化京东API:{}", this.getCompany());
        return new JdApi(BASE_URI);
    }

    /**
     * 获取不同主体默认参数
     *
     * @return DefaultExpressParam
     */
    @Override
    public String getExpressParams() {
        return BASE_URI;
    }

    /**
     * 走不同主体公司的判断标识
     *
     * @return String
     */
    @Override
    public String getCompany() {
        return "湖南慧用工企业服务有限公司";
    }
}
